package jonggyuni.basic;

public class Ch04_Q1 {

	public static void main(String[] args) {
		
		Song sg = new Song("Dancing Queen", "ABBA", "Arrival",new String[]{"베니 안데르손","비에른 울바에우스","스틱 앤더슨"},1976,2 );
		
			
		sg.show();

	}//main

}//class


class Song{
	String title;
	String artist;
	String album;
	String composer[];
	int year;
	int track;
	
	public Song(){ }
	public Song(String title, String artist, String album, String composer[], int year, int track){ 
		this.title = title;
		this.artist = artist;
		this.album = album;
		this.composer = composer;
		this.year = year;
		this.track = track;
	}
		
	void show(){
		System.out.println("Title : " + title);
		System.out.println("Artist : " + artist);
		System.out.println("Album : " + album);
		System.out.print("Composer : ");
		for(int i=0; i<composer.length;i++){
			System.out.print(composer[i]+"/");
		}
		System.out.println("");
		System.out.println("Year : " + year);
		System.out.println("track : " + track);
		
	}
}